                                <form action="" method="GET" role="form">
                                    <div class="col-xs-2">
                                        <select name="year" id="yearid" class="form-control" >
                                            <option value="">年份</option>
                                            <option value="2016">2016</option>
                                            <option value="2017">2017</option>
                                            <option value="2018">2018</option>
                                            <option value="2019">2019</option>
                                            <option value="2020">2020</option>
                                            <option value="2021">2021</option>
                                            <option value="2022">2022</option>
                                            <option value="2023">2023</option>
                                            <option value="2024">2024</option>
                                            <option value="2025">2025</option>
                                        </select>
                                        <script type="text/javascript">
                                            $('#yearid').val('{$Think.get.year}');
                                        </script>
                                    </div>
                                    <div class="col-xs-2">
                                        <select name="month" id="monthid" class="form-control" >
                                            <option value="">月份</option>
                                            <option value="01">01</option>
                                            <option value="02">02</option>
                                            <option value="03">03</option>
                                            <option value="04">04</option>
                                            <option value="05">05</option>
                                            <option value="06">06</option>
                                            <option value="07">07</option>
                                            <option value="08">08</option>
                                            <option value="09">09</option>
                                            <option value="10">10</option>
                                            <option value="11">11</option>
                                            <option value="12">12</option>
                                        </select>
                                        <script type="text/javascript">
                                            $('#monthid').val('{$Think.get.month}');
                                        </script>
                                    </div>
                                    <div class="col-xs-3">
                                        <select name="shopid" id="shopid" class="form-control" >
                                            <option value="">请选择门店</option>
                                            <volist name="shoplist" id="vo">
                                                <option value="{$vo.tid}">{$vo.shopname}</option>
                                            </volist>
                                        </select>
                                        <script type="text/javascript">
                                        $('#shopid').val('{$Think.get.shopid}');
                                        </script>
                                    </div>
                                    <div class="col-xs-3">
                                        <select name="managerid" id="managerid" class="form-control" >
                                            <option value="">请选择跟单经理</option>
                                            <volist name="managerlist" id="vo">
                                                <option value="{$vo.tid}">{$vo.realname}</option>
                                            </volist>
                                        </select>
                                        <script type="text/javascript">
                                        $('#managerid').val('{$Think.get.managerid}');
                                        </script>
                                    </div>
                                  
                                    <div class="col-xs-2 input-group-btn">
                                        <button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
                                    </div>
                                </form>
<script type="text/javascript">
    $("#shopid").change(function(){
        // alert($(this).find("option:selected").text());
        var shopid = $(this).val();
        $.ajax({
            type: "GET",
            url: "/Ajax/getCustMgrInfo",  //?shopid="+shopid
            data:{shopid:shopid},
            dataType: "json",// html/json/jsonp/xml
            success: function(result,opt){
                 $("#managerid").html("");
                 var str = "";
                if (result.length > 0){
                    $.each(result, function(idx, item){
                         str += "<option value="+result[idx].tid+">"+result[idx].realname+"</option>"
                    })
                   $("#managerid").html(str);
                }
            },
            error: function(){
                alert('请求失败');
            }
        });
    })
</script>